package com.foxchen.fanjingmontainticket.controller.model;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class TicketController {

    @GetMapping("/")
    public String hello(Model model) {
        model.addAttribute("name", "张三");
        return "ticket";
    }
}
